import request from '@/utils/request'
export function productSpecList (query) {
    return request({
        url: '/product/productSpec/list',
        method: 'get',
        params: query
    })
}

export function productSpecDelete(id){
    return  request({
        url: '/product/productSpec/' + id,
        method: 'delete'
    })
}

export function productSpecDeleteAdd(data){
    return request({
        url: '/product/productSpec',
        method: 'post',
        data: data
    })
}

export function getSpecDetail (id) {
    return request({
        url: '/product/productSpec/' +id,
        method: 'get'
    })
}

export function productSpecDeleteUpdate (data) {
    return request({
        url: '/product/productSpec',
        method: 'put',
        data: data
    })
}

export function productSpecListByCategoryId(id) {
    return request({
        url: '/product/productSpec/productSpecList/' + id,
        method: 'get'
    })
}